﻿using System;
namespace CaiBaby.Model
{
	/// <summary>
	/// 帐号表
	/// </summary>
	[Serializable]
	public partial class User
	{
		public User(){}
		#region Model
		private int _uid;
		private string _nickname="";
		private byte[] _headpic;
		private string _spacename="";
		private int _treasure=0;
		private string _email="";
		private string _telphone="";
		private int _loginseries=0;
		private DateTime _createtime= DateTime.Now;
		private bool _sharestate= true;
		private int _state=0;
		/// <summary>
		/// 用户ID
		/// </summary>
		public int UId
		{
			set{ _uid=value;}
			get{return _uid;}
		}
		/// <summary>
		/// 用户昵称
		/// </summary>
		public string NickName
		{
			set{ _nickname=value;}
			get{return _nickname;}
		}
		/// <summary>
		/// 用户头像
		/// </summary>
		public byte[] HeadPic
		{
			set{ _headpic=value;}
			get{return _headpic;}
		}
		/// <summary>
		/// 空间命名
		/// </summary>
		public string SpaceName
		{
			set{ _spacename=value;}
			get{return _spacename;}
		}
		/// <summary>
		/// 该用户的所有的财宝值
		/// </summary>
		public int Treasure
		{
			set{ _treasure=value;}
			get{return _treasure;}
		}
		/// <summary>
		/// 联系邮箱
		/// </summary>
		public string Email
		{
			set{ _email=value;}
			get{return _email;}
		}
		/// <summary>
		/// 联系手机
		/// </summary>
		public string TelPhone
		{
			set{ _telphone=value;}
			get{return _telphone;}
		}
		/// <summary>
		/// 用户连续登录次数
		/// </summary>
		public int LoginSeries
		{
			set{ _loginseries=value;}
			get{return _loginseries;}
		}
		/// <summary>
		/// 用户创建的时间
		/// </summary>
		public DateTime CreateTime
		{
			set{ _createtime=value;}
			get{return _createtime;}
		}
		/// <summary>
		/// 空间分享/封闭状态 0为分享 1为封闭
		/// </summary>
		public bool ShareState
		{
			set{ _sharestate=value;}
			get{return _sharestate;}
		}
		/// <summary>
		/// 用户状态 0为可用 1为禁用
		/// </summary>
		public int State
		{
			set{ _state=value;}
			get{return _state;}
		}
		#endregion Model
	}
}

